home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-15 | 1.0 KB | 26 lines | [TEXT/CWIE] |
- /* Fill Memory
-
- This is a simple debugging aid.
-
- It is a little app that I wrote to convince myself that my app wasn't causing
- other applications to crash.
-
- All this application does is fill its memory with a simple pattern and then checks
- over and over to make sure that the pattern hasn't changed.
-
- If you set this app's memory partition high enough it will take over almost all available
- RAM, allowing you to test your application in both low system memory envinronments and
- to see if your application accidently writes to memory that is not its. Since this app
- doesn't do any tricky checking it is hardly fool-proof, but it convinced me that the
- string of crashes in other applications I was seeing when app was running was mearly a
- fluke.
-
- It was right, after a reboot and no code changes to my app the crashing stopped. This
- saved me countless hours from trying to track down a bug that was not in my code. Maybe
- it can do the same for you.
-
- Enjoy,
- Mark Cookson (mcookson@apple.com)
- Developer Technical Support
- Apple Computer, Inc.
- */